<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <script src="./src/debounce.js"></script>
    <script src="./lib/throttle.js"></script>
  </head>
  <body>
    <input id="input" />
    <script>
      var $input = document.querySelector("#input");
      var echo = function(e) {
        console.log(this);
        console.log(e.target.value);
      };
      var echoDebounce = debounce(echo, 400);
      $input.addEventListener("input", echoDebounce, false);
    </script>
  </body>
</html>
